package io.gitee.yth.design.pattern.test.core.pattern.creational.factory.pizzaorderservice;

import io.gitee.yth.design.pattern.test.core.pattern.creational.factory.pizza.Pizza;

/**
 * @author yth
 * @since 2023-04-17-12:20
 */
public abstract class AbstractPizzaOrderService implements IPizzaOrderService {

    /**
     * 工厂方法模式
     * <p>
     * 防止工厂类膨胀
     * <p>
     * 核心思想：将对象的实例化推迟到子类中
     */
    protected abstract Pizza createPizza(String orderType);

}
